package com.ricky.game;

import com.ricky.config.ConfigData;
import com.ricky.config.Unit.Unit;
import com.ricky.game.entity.Graphic;
import com.ricky.game.scene.RoomController;
import com.ricky.game.scene.SceneController;

public class Hero extends Actor {

	public Hero()
	{
		this.setGraphic(new Graphic());
	}
	
	public void setUnit(String uinit)
	{
		Unit unit=ConfigData.getHeroUnit(uinit);
		super.setUnit(unit);
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}


	/**
	 * @return the ceatedRoom
	 */
	public RoomController getCeatedRoom() {
		return ceatedRoom;
	}

	/**
	 * @param ceatedRoom the ceatedRoom to set
	 */
	public void setCeatedRoom(RoomController ceatedRoom) {
		this.ceatedRoom = ceatedRoom;
	}


	//
	private String userName;
	
	
	private RoomController ceatedRoom;
}
